/*
 *  Copyright 2019-2020 Zheng Jie
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.kun.peng.system.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.NoArgsConstructor;
import lombok.Setter;
import com.kun.peng.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;

import javax.validation.constraints.NotBlank;
import java.sql.Timestamp;
import java.io.Serializable;

/**
 * @author 薛宝鹏
 * @website https://el-admin.vip
 * @description /
 * @date 2021-12-07
 **/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_menu")
@ApiModel(value = "菜单表", description = "菜单表")
public class SysMenu extends BaseEntity implements Serializable {
    @TableId(value = "menuId", type = IdType.AUTO)
    @TableField("menu_id")
    @ApiModelProperty(value = "ID")
    private Long menuId;
    @TableField("pid")
    @ApiModelProperty(value = "上级菜单ID")
    private Long pid;
    @TableField("sub_count")
    @ApiModelProperty(value = "子菜单数目")
    private Integer subCount;
    @TableField("type")
    @ApiModelProperty(value = "菜单类型")
    private Integer type;
    @TableField("title")
    @ApiModelProperty(value = "菜单标题")
    private String title;
    @TableField("name")
    @ApiModelProperty(value = "组件名称")
    private String name;
    @TableField("component")
    @NotBlank
    @ApiModelProperty(value = "组件")
    private String component;
    @TableField("menu_sort")
    @ApiModelProperty(value = "排序")
    private Integer menuSort;
    @TableField("icon")
    @ApiModelProperty(value = "图标")
    private String icon;
    @TableField("path")
    @ApiModelProperty(value = "链接地址")
    private String path;
    @TableField("i_frame")
    @ApiModelProperty(value = "是否外链")
    private Boolean iFrame;
    @TableField("cache")
    @ApiModelProperty(value = "缓存")
    private Boolean cache;
    @TableField("hidden")
    @ApiModelProperty(value = "隐藏")
    private Boolean hidden;
    @TableField("permission")
    @ApiModelProperty(value = "权限")
    private String permission;
    @TableField("creator")
    @ApiModelProperty(value = "创建者")
    private String creator;
    @TableField("modifier")
    @ApiModelProperty(value = "更新者")
    private String modifier;
    @TableField("create_time")
    @ApiModelProperty(value = "创建日期")
    private Timestamp createTime;
    @TableField("update_time")
    @ApiModelProperty(value = "更新时间")
    private Timestamp updateTime;
}